import request from "@/utils/request";
// 登录
export function loginApi(data) {
  return request({
    url: "/login",
    method: "POST",
    data,
  });
}

// 验证码
export function getCodeApi(data) {
  return request({
    method: "GET",
    url: "/captcha",
    params: data,
  });
}
// 侧边目录
export function getMenusApi() {
  return request({
    method: "GET",
    url: "/menus",
  });
}
